#include "menu.h"
#include "label.h"

using namespace menu;
using namespace labels;

menu_world* menu::make_menu(){
	menu_world* main_menu = new menu_world();

	//load label generators
	generator *normal = new generator(10,0,"game_data/labels/menu_normal/");
	generator *hilight = new generator(10,0,"game_data/labels/menu_hilight/");
	
	//load new game
	label *newgame_n = new label("New Game", normal);
	label *newgame_h = new label("New Game", hilight);
	menu_item new_item(newgame_h,newgame_n,1,NULL);
	main_menu->add_item(new_item);
	
	//load new game
	label *options_n = new label("Options", normal);
	label *options_h = new label("Options", hilight);
	new_item.set(options_h,options_n,1,NULL);
	main_menu->add_item(new_item);
	
	//quit
	label *quit_n = new label("Quit", normal);
	label *quit_h = new label("Quit", hilight);
	new_item.set(quit_h,quit_n,1,NULL);
	main_menu->add_item(new_item);

/*
	//load quit
	act = IMG_Load("game_data/menu/quit/quit.png");
	nact = IMG_Load("game_data/menu/quit/quit_a.png");
	new_item.set(nact,act,1,NULL);
	main_menu->add_item(new_item);
*/

/*
	main_menu->add_item(new_item);

	main_menu->add_item(new_item);

	main_menu->add_item(new_item);
*/
	main_menu->select_first();
	main_menu->set_background(IMG_Load("game_data/menu/background/background.png"));

	return main_menu;
}
